package com.ytkj.tradeserver.config;

public enum StateCode {

	SYSTEM_ERROR(10001, "系统秘钥错误！"),
	SYSTEM_NO_EXIST(10002, "请求的接口不存在！"),
	SYSTEM_REQUEST_LIMIT(10003, "请求频率超过上限"),
	SYSTEM_NO_APPID(10004, "token不存在！"),
	SYSTEM_TOKEN_ERROR(10005, "token无效！"),
	SYSTEM_TOKEN_EXPIRED(10006, "token已过期,请重新获取！"),
	API_LOGIN_FAILE(20001, "登录失败,账号或密码错误！"),
	API_ACCESS_SUCCESS(20000, "请求成功！"),
	API_LOGIN_SUCCESS(20003, "登录成功！"),
	API_REG_SUCCESS(20004, "注册成功!"),
	API_REG_FAILE(20005, "注册成功失败！"),
	API_REG_RERE_PHONE(20006, "手机号码已存在!"),
	API_REG_RERE_NAME(20007, "用户名已存在!"),
	API_PRODUCT_SUCCESS(20008, "产品添加成功!"),
	API_PRODUCT_FAILE(20009, "产品添加失败!"),
	API_PRODUCT_NORE_FAILE(20010, "产品不能重复!"),
	API_PRODUCT_DEL_SUCCESS(20011, "产品删除成功!"),
	API_PRODUCT_DEL_FAILE(20012, "产品删除失败!"),;

	private int code;

	private String msg;

	private StateCode(int key, String v) {

		this.code = key;
		this.msg = v;

	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
